import { fileRequest } from './request';

export function apiFetchFileBlob(id: string): Promise<Blob> {
  return fileRequest({
    url: `/assets/photo/${id}.png`,
    method: 'get',
  });
}

export function apiFetchFileBlobByUrl(url: string): Promise<Blob> {
  return fileRequest({
    url,
    method: 'get'
  });
}